import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import vueLazyLoad from "vue-lazyload"
import vueCookie from 'vue-cookie'
//全局配置network
import {get, post, patch, put} from "./network/request.js"

//配置全局变量
Vue.config.productionTip = false
Vue.prototype.$get = get;
Vue.prototype.$post = post;
Vue.prototype.$patch = patch;
Vue.prototype.$put = put;

/*懒加载的使用*/
Vue.use(vueLazyLoad, {
    error: require('@/public/imgs/loading-svg/loading-spin.svg'),
    loading: require('@/public/imgs/loading-svg/loading-bars.svg'),
});
/*使用vue-cookie*/
Vue.use(vueCookie);
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
